
tabsMax = 15;

var DiamondType = {
		"recharge" : 1,
		"gift" : 2
};
var userType = {
		1: "代理商",
		2: "推广员",
		3: "管理员",
		4: "合作方"
};
var userState = {
	0: "未激活",
	1: "已激活",
	2: "已冻结"
};

var State = {
	"success": 1,
	"fail": 0
};
var RebateMoneyState = {
	"has": 1,
	"finish": 2
};
var OrderState = {
	0: "待支付",
	1: "待发货",
	2: "已完成"
};
var SalesStruId = 20001;
var ButtonType = 2;
var tradeType = {
	"BUY": 1,
	"GIFT": 2,
	"REBATE": 3
};
var tradeTypeCha = {
	1: "购买",
	2: "赠送",
	3: "返利"
};
var userAgent = 1; //1表示 代理商
var userPromoter = 2; //2表示推广员
var userManager = 3; //3标示管理员
var cooperater = 4; //4标示合作方

var StateStop = 0; //禁用
var StateUse = 1; //激活
var StateWarning = 2; //冻结
var StateLocked = -1; //错误次数超限，账号已被锁定，请12小时后再试
var StateNoUser = 11; //没有这个用户
var StateValidateError = 12; //验证失败
var StateUserFrozen = 13; //账号被冻结
var StateValError = 15; //验证码不正确
var StateOtherError = 16; //账号或密码不正确
var StateBindMobileError = 17; //老用户已绑定手机号
var StateUserStop = 18; //账号被禁用
var StateLocking = 19; //错误次数达到4次，下次被锁定
var StateNoDomain = 20; //域名解析失败
